package io.renren.dao;

import io.renren.common.dao.BaseDao;
import io.renren.entity.AgencyinsurancegiftdEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * ${comments}
 *
 * @author Sen 524227263@qq.com
 * @since 1.0.0 2024-05-30
 */
@Mapper
public interface AgencyinsurancegiftdDao extends BaseDao<AgencyinsurancegiftdEntity> {

    @Select("select a.BusinessQuantity,b.Name from Agencyinsurancegiftd a left join Goodsm b ON a.GoodsM_FK = b.GoodsMOID " +
            "where a.AgencyInsuranceRegM_FK =#{agencyInsuranceRegMoId}")
    List<Map<String, Object>> selectGiftList(@Param("agencyInsuranceRegMoId") String agencyInsuranceRegMoId);
}